package top.zy.model.event.service.impl;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Service;
import top.zy.model.event.event.UserRegisterEvent;
import top.zy.model.event.service.CouponService;

/**
 * @author ZackYoung
 * @version 1.0
 * @date 2021/12/26
 */
@Service
@Slf4j
public class CouponServiceImpl implements CouponService {
    @Override
    @EventListener
    public void addCoupon(UserRegisterEvent event) {
        log.info("[addCoupon][给用户（{}）发放优惠卷]", event.getUsername());
    }
}
